package com.thghh.ch5.tree;

/**
 * @author Zhikang.Peng
 * @version 1.0
 * @email thghh@qq.com
 * @date 2020/9/9 17:15
 */
public interface BinNode<E> {
    E element();
    E setElement(E e);

    BinNode left();
    BinNode setLeft(BinNode b);

    BinNode right();
    BinNode right(BinNode b);

    boolean isLeaf();
}
